package com.bootdo.wx.dao;

import com.bootdo.wx.domain.OrderComDO;
import org.apache.ibatis.annotations.Mapper;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * 订单返佣表
 * @author chglee
 * @email 1992lcg@163.com
 * @date 2019-05-22 15:31:35
 */
@Mapper
public interface OrderComDao {

	OrderComDO get(String id);

	OrderComDO getOrderComDO(Map<String, Object> map);

	List<OrderComDO> list(Map<String, Object> map);

	List<Map<String,Object>> comPriceList(Map<String, Object> map);

	List<Map<String,Object>> comUser(Map<String, Object> map);

	List<Map<String,Object>> extractList(Map<String, Object> map);

	List<Map<String,Object>> extracSettlement(Map<String, Object> map);

	int count(Map<String, Object> map);
	
	int save(OrderComDO orderCom);
	
	int update(OrderComDO orderCom);
	
	int remove(String id);
	
	int batchRemove(String[] ids);

	int removeCom(String orderId);

	BigDecimal getMemberPrice(Map<String, Object> map);

	BigDecimal getComPrice(Map<String, Object> map);



	int updateByOrderId(String orderId);

	/**
	 * @author long
	 * 2020年7月20日上午11:22:26
	 * 方法释义:
	 * 参数:
	 *
	 */
	BigDecimal getMemberFreezeMoney(String string);

	/**
	 * @author long
	 * 2020年7月22日上午10:48:38
	 * 方法释义:
	 * 参数:
	 *
	 */
	List<OrderComDO> getMemberFreezeMoneyList(Map<String, Object> paramMap);


    List<Map<String, Object>> getByExtractId(Map<String, Object> params);

	int getByExtractIdCount(Map<String, Object> params);

	List<OrderComDO> getByOrderId(String id);


    BigDecimal sumComUserMoney(Map<String, Object> params);

    BigDecimal frozen(Map<String, Object> map);


}
